package com.github.wisdom.member.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ccssoft.m8.common.ccssoft.modules.util.EntityWrapperHandle;
import com.ccssoft.m8.common.ccssoft.modules.util.PageUtils;
import com.ccssoft.m8.common.ccssoft.modules.util.Query;

import com.github.wisdom.member.dao.MemberRelationDao;
import com.github.wisdom.member.entity.MemberRelationEntity;
import com.github.wisdom.member.service.MemberRelationService;


@Service("memberRelationService")
public class MemberRelationServiceImpl extends ServiceImpl<MemberRelationDao, MemberRelationEntity> implements MemberRelationService<MemberRelationEntity> {

    @Override
    public PageUtils<MemberRelationEntity> queryPage(Map<String, Object> params) {
    	EntityWrapperHandle<MemberRelationEntity> ew = new EntityWrapperHandle<MemberRelationEntity>(params);
		Page<MemberRelationEntity> page = this.selectPage(new Query<MemberRelationEntity>(params).getPage(),ew);
		page.setTotal(this.selectCount(ew));
		return new PageUtils<MemberRelationEntity>(page);
    }
    @Override
    public List<MemberRelationEntity> queryPageByLike(Map<String, Object> params) {
    	return baseMapper.queryPageByLike(params);
    }
    

}
